// 该文件是用来处理用户相关的api请求的
import { http } from '@/utils';

function loginAPI(formData) {
	return http({
		url: '/authorizations',
		method: 'POST',
		data: formData
	})
}

function getProfileAPI() {
	return http({
		url: '/user/profile',
		method: 'GET'
	})
}


function getUserChannelsAPI() {
	return http.get('/user/channels')
}

export { loginAPI, getProfileAPI, getUserChannelsAPI };